﻿/**
 *
 * @author sminutoli
 * @version 1.0
 * @description Clase que interpreta a la persona que se registra en el lector biométrico
 * 
 **/

import com.dinmax.isolution.*
import com.dinmax.flash.utilities.xml.*;

class com.dinmax.isolution.ParseXMLPerson   {
	
	public static function parse(node:XMLNode):Array {
		var response:Array=new Array();
		var person:Person = new Person();
		person.setId(XMLUtils.getAttribute(node, "id"));
		person.setType(XMLUtils.getAttribute(node, "type"));
		person.setName(XMLUtils.getAttribute(node, "personName"));
		person.setLastName(XMLUtils.getAttribute(node, "personLastName"));
		response.push(person);
		return response;
	}

}